package com.xk857;


import com.xk857.db.CarDB;
import com.xk857.db.CarPartDB;
import com.xk857.db.UserDB;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;


/**
 * 程序入口
 */
//开启定时任务
@EnableScheduling
@SpringBootApplication
public class AppRun {
    public static void main(String[] args) {
        SpringApplication.run(AppRun.class,args);
        init();
    }

    //初始化数据
    public static void init(){
        CarDB.initCar();
        CarDB.initIntersection();
        CarDB.initSense();
        CarPartDB.init();
        UserDB.initUser();
    }
}
